<template>
  <div v-if="fromType === 'outbound'" class="flex items-center justify-around">
    <div class="flex items-center">
      <span class="w-[100px]">出库日期：</span><Input :value="props!.data!.quoteTime" disabled />
    </div>
    <div class="flex items-center">
      <span class="w-[100px]">操作人：</span>
      <Input :value="props!.data!.quoteBy" disabled />
    </div>
  </div>

  <div v-else-if="fromType === 'outboundCheck'" class="flex items-center justify-around">
    <div class="flex items-center">
      <span class="w-[100px]">运输类型：</span><Input :value="props!.data!.vehicleModel" disabled />
    </div>
    <div class="flex items-center">
      <span class="w-[100px]">出库日期：</span><Input :value="props!.data!.quoteTime" disabled />
    </div>
    <div class="flex items-center">
      <span class="w-[100px]">操作人：</span>
      <Input :value="props!.data!.quoteBy" disabled />
    </div>
  </div>

  <div
    v-else-if="fromType === 'sign' || fromType === 'signCheck'"
    class="flex items-center justify-around"
  >
    <div class="flex items-center">
      <span class="w-[100px]">签收日期：</span><Input :value="props!.data!.quoteTime" disabled />
    </div>
    <div class="flex items-center">
      <span class="w-[100px]">操作人：</span>
      <Input :value="props!.data!.quoteBy" disabled />
    </div>
  </div>

  <div v-else class="flex items-center justify-around">
    <div class="flex items-center">
      <span class="w-[100px]">报价日期：</span><Input :value="props!.data!.quoteTime" disabled />
    </div>
    <div class="flex items-center">
      <span class="w-[100px]">有效期至：</span>
      <Input :value="props!.data!.quoteExpireDate" disabled />
    </div>
    <div class="flex items-center">
      <span class="w-[100px]">报价人：</span>
      <Input :value="props!.data!.quoteBy" disabled />
    </div>
  </div>
</template>
<script lang="ts" setup>
  import { defineProps } from 'vue';
  import { Input } from 'ant-design-vue';

  const props = defineProps({
    data: { type: Object },
    fromType: { type: String },
  });
</script>
